from django.conf.urls import patterns, include, url

from django.contrib import admin
admin.autodiscover()



# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()


Root_URLCONF = 'hannal.urls'

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'hannal.views.home', name='home'),
    # url(r'^hannal/', include('hannal.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    
    url(r'^blog/$', 'blog.views.index'),
    url(r'^blog/page/(?P<page>\d+)/$', 'blog.views.index'),
    url(r'^blog/entry/(?P<entry_id>\d+)/$', 'blog.views.read'),
    url(r'^blog/add/comment/$', 'blog.views.add_comment'),
    url(r'^blog/delete/comment/$', 'blog.views.del_comment'),
    url(r'^blog/feed/$', 'blog.views.rssfeed'),
    url(r'login/$', 'blog.views.login'),
    url(r'logout/$', 'blog.views.logout'),
    url(r'^blog/login_page1/$', 'blog.views.login_page1'),
    url(r'^blog/login_page2/$', 'blog.views.login_page2'),
    url(r'^blog/login_page/$', 'blog.views.login_page'),
    
    url(r'^blog/write/$', 'blog.views.write_form'),
    
    url(r'^blog/add/post/$', 'blog.views.add_post'),
    
    #url(r'^blog/$', 'hannal.blog.views.index', name='index'),
    #url(r'^blog/page/(?P<page>d+)/$', 'hannal.blog.views.index', name='index'),
    url(r'^admin/', include(admin.site.urls)),
)
